package com.qububu.emporium.orderform.dto;

import com.qububu.utils.SystemUtil;

public class OrderGoodsMessageDto {

	private String orderId; // 订单号
	
	private String goodsInfoId; // 商品详细情况ID
	
	private int goodsQuantity; // 商品总量

	public String getOrderId() {
		return orderId;
	}

	public String getGoodsInfoId() {
		return goodsInfoId;
	}

	public int getGoodsQuantity() {
		return goodsQuantity;
	}

	public void setGoodsQuantity(int goodsQuantity) {
		this.goodsQuantity = goodsQuantity;
	}
	
	public OrderGoodsMessageDto(String orderId, String goodsInfoId) {
		this.orderId = orderId;
		this.goodsInfoId = goodsInfoId;
	}
	
	public OrderGoodsMessageDto(int orderId, int goodsInfoId) {
		this.orderId = SystemUtil.encrypt(String.valueOf(orderId));
		this.goodsInfoId = SystemUtil.encrypt(String.valueOf(goodsInfoId));
	}
	
}
